import apiCreator from './apiCreator';
import helper from './helper';
import request from './request';
import dealUrl from './dealUrl';
import sagaEffects from './sagaEffects';
import lodash from 'lodash';

const isObjectContentEqual = (obj1, obj2) => {
  if (obj1 == null && obj2 == null) { return true; }

  if (obj1 == null && obj2 != null
  || obj1 != null && obj2 == null) { return false; }

  if (Object.getOwnPropertyNames(obj1).length
  !== Object.getOwnPropertyNames(obj2).length) { return false; }

  return lodash.isEqual(obj1, obj2);
};

const colors=['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83',  '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3']

export default { apiCreator, helper, request, sagaEffects, isObjectContentEqual, dealUrl,colors };
